package bairui.international.console.web.controller.college.category;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lianjing.sh.spring.web.controller.base.action.Action;
import com.lianjing.sh.spring.web.controller.enhance.output.FomatOutput;

import bairui.international.service.Service_CollegeCategory;

/**
 *
 * 发布
 *
 * @generated
 * 
 * @see STest_C_CollegeCategory_Publish_Submit 测试
 *
 */
@Controller
public class C_CollegeCategory_Publish_Submit
 extends SC_CollegeCategory_Publish_Submit 
{
	
	@Autowired private Service_CollegeCategory service_CollegeCategory;
	
	/**
	 * 提交
	 */
	@Action(Submit.class)
	@GetMapping(Submit.RequestMappingValue)
	public @FomatOutput @ResponseBody Object submit(
		ModelMap map, HttpServletRequest request, 
		@PathVariable(name=Submit.PathVariableName.Id) long id
	) throws Exception {
		service_CollegeCategory.publish(id);
		//
		return null;
	}
	

}
